import axios from "axios";

export function articleGetAllService() {
    axios.get("http://localhost:8080/article/getAll")
        .then(result => {
            return result.data;
        })
        .catch(error => {
            console.log(error);
        })
}

export function articleSearchService(conditions) {
    axios.get("http://localhost:8080/article/search",{params:aonditions})
        .then(result => {
            return result.data;
        })
        .catch(error => {
            console.log(error);
        })
}